USE [master]
GO

-- You may change this password here and in the web.config
CREATE LOGIN [falafel] WITH PASSWORD=N'password!', DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[us_english], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
GO

/****** Object:  Database [Falafel]    Script Date: 06/02/2010 09:44:44 ******/
CREATE DATABASE [Falafel] ON  PRIMARY 
( NAME = N'Falafel', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Falafel.mdf' , SIZE = 2048KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
 LOG ON 
( NAME = N'Falafel_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\Falafel_log.ldf' , SIZE = 7168KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO

ALTER DATABASE [Falafel] SET COMPATIBILITY_LEVEL = 100
GO

IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [Falafel].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO

ALTER DATABASE [Falafel] SET ANSI_NULL_DEFAULT OFF 
GO

ALTER DATABASE [Falafel] SET ANSI_NULLS OFF 
GO

ALTER DATABASE [Falafel] SET ANSI_PADDING OFF 
GO

ALTER DATABASE [Falafel] SET ANSI_WARNINGS OFF 
GO

ALTER DATABASE [Falafel] SET ARITHABORT OFF 
GO

ALTER DATABASE [Falafel] SET AUTO_CLOSE OFF 
GO

ALTER DATABASE [Falafel] SET AUTO_CREATE_STATISTICS ON 
GO

ALTER DATABASE [Falafel] SET AUTO_SHRINK OFF 
GO

ALTER DATABASE [Falafel] SET AUTO_UPDATE_STATISTICS ON 
GO

ALTER DATABASE [Falafel] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO

ALTER DATABASE [Falafel] SET CURSOR_DEFAULT  GLOBAL 
GO

ALTER DATABASE [Falafel] SET CONCAT_NULL_YIELDS_NULL OFF 
GO

ALTER DATABASE [Falafel] SET NUMERIC_ROUNDABORT OFF 
GO

ALTER DATABASE [Falafel] SET QUOTED_IDENTIFIER OFF 
GO

ALTER DATABASE [Falafel] SET RECURSIVE_TRIGGERS OFF 
GO

ALTER DATABASE [Falafel] SET  DISABLE_BROKER 
GO

ALTER DATABASE [Falafel] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO

ALTER DATABASE [Falafel] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO

ALTER DATABASE [Falafel] SET TRUSTWORTHY OFF 
GO

ALTER DATABASE [Falafel] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO

ALTER DATABASE [Falafel] SET PARAMETERIZATION SIMPLE 
GO

ALTER DATABASE [Falafel] SET READ_COMMITTED_SNAPSHOT OFF 
GO

ALTER DATABASE [Falafel] SET HONOR_BROKER_PRIORITY OFF 
GO

ALTER DATABASE [Falafel] SET  READ_WRITE 
GO

ALTER DATABASE [Falafel] SET RECOVERY FULL 
GO

ALTER DATABASE [Falafel] SET  MULTI_USER 
GO

ALTER DATABASE [Falafel] SET PAGE_VERIFY CHECKSUM  
GO

ALTER DATABASE [Falafel] SET DB_CHAINING OFF 
GO


USE [Falafel]
GO
CREATE USER [falafel] FOR LOGIN [falafel]
GO
USE [Falafel]
GO
ALTER USER [falafel] WITH DEFAULT_SCHEMA=[dbo]
GO
USE [Falafel]
GO
EXEC sp_addrolemember N'db_owner', N'falafel'
GO
